Skip to content

Use Tag UIDs in snapshot storage paths - #1521

Open
Eitan Yarmush (EItanya) wants to merge 3 commits into
agent-substrate:mainfrom
kagent-dev:fix/tag-snapshot-uid
Open

Use Tag UIDs in snapshot storage paths#1521
Eitan Yarmush (EItanya) wants to merge 3 commits into
agent-substrate:mainfrom
kagent-dev:fix/tag-snapshot-uid

Conversation

@EItanya

Copy link
Copy Markdown
Collaborator

Fixes #1508

Store tag snapshots at <base>/atespaces/<atespace>/tags/<tag-uid>. Replace in_progress_snapshot_uri with immutable storage_location, so pending and completed tags share UID-based cleanup independent of the source actor or template.

  • Tests pass: race-enabled control API tests and PostgreSQL tag contract tests.
  • Documentation updated.

Lint and code-generation verification also passed.

Derive tag snapshot destinations and cleanup prefixes from the persisted tag UID. Retain an immutable storage location instead of an in-progress URI so failed copies can be collected independently of their source actor and template.

Signed-off-by: Eitan Yarmush <[email protected]>
Replace the removed in-progress snapshot URI at field 3 and regenerate the protobuf bindings and validation code. Backward compatibility with the previous field is not required.

Signed-off-by: Eitan Yarmush <[email protected]>
Pause commits the worker release before the watch-fed scheduler cache observes it. Use the existing availability wait before resuming so cache lag cannot produce a spurious no-capacity failure.

Signed-off-by: Eitan Yarmush <[email protected]>
// once snapshot is set, so a tag left with it set names exactly the objects
// its unfinished create stranded, and deleting the tag collects them.
string in_progress_snapshot_uri = 3;
// Immutable base storage location captured when the tag is reserved. Its

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this documentation a bit better? Seems very focus on implementation details, but not meant by API consumers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Tag.metadata.uid as part of the snapshot URI

2 participants